﻿using System;
using System.Collections.Generic;
using System.Data;
using MigSharp;

namespace CmsDatabaseMigrations.Migrations
{
    //[MigrationExport(ModuleName = "Users", Tag="Adds locale field to users")]
    public class CmsUserLocale201502072201:BatchMigration
    {
        protected override IEnumerable<string> SpFileNames
        {
            get { throw new NotImplementedException(); }
        }

        protected override IEnumerable<Action<IDatabase>> UpActions
        {
            get { yield return d => d.Tables["Users"].AddNullableColumn("Locale", DbType.String).OfSize(15); }
        }

        protected override IEnumerable<Action<IDatabase>> DownActions
        {
            get { return new List<Action<IDatabase>>(); }
        }
    }
}